
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<title>KindEditor PHP</title>
	<link rel="stylesheet" href="/vendor/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="/vendor/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="/vendor/kindeditor/kindeditor-all-min.js"></script>
	<script charset="utf-8" src="/vendor/kindeditor/kindeditor-all.js"></script>
	<script charset="utf-8" src="/vendor/kindeditor/lang/zh-CN.js"></script>
	<script charset="utf-8" src="/vendor/kindeditor/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content1"]', {
				cssPath : '/vendor/kindeditor/plugins/code/prettify.css',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
</head>
<body>

		<textarea name="content1" style="width:700px;height:200px;visibility:hidden;">ddd</textarea>
	
</body>
</html>

